<template>
  <el-popconfirm class="btn" v-bind="popconfirm" v-on="$listeners">
    <template #reference>
      <el-button v-bind="button">
        <slot></slot>
      </el-button>
    </template>
  </el-popconfirm>
</template>

<script>
export default {
  props: {
    popconfirm: {
      type: Object,
      default: () => ({}),
    },
    button: {
      type: Object,
      default: () => ({}),
    },
  },
};
</script>

<style lang="scss" scoped>
.btn {
  margin: 0 10px;
}
</style>
